<template>
  <nav>
    <ul>
      <router-link to="/film" tag="li" active-class="active">
        <i class="iconfont icon-dianying"></i>
        <span>电影</span>
      </router-link>
      <router-link to="/cinema" tag="li" active-class="active">
        <i class="iconfont icon-dianyingyuan"></i>
        <span>影院</span>
      </router-link> 
      <router-link to="/mine" tag="li" active-class="active">
        <i class="iconfont icon-wode"></i>
        <span>我的</span>
      </router-link>
    </ul>
  </nav>
</template>
<script>
  export default{
    name: 'TabbarLayout'
  }
</script>
<style lang="less" scoped>
nav {
  width: 100%;
  height: 50px;
  position: fixed;
  left: 0;
  bottom: 0;
  background: #fff;
  z-index: 99;
  line-height: 25px;
  ul{
    display: flex;
    li{
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
      i{
        font-size: 20px;
      }
      span{
        font-size: 12px;
      }
    }
  }

}
.active{
  color: rgb(233, 48, 48);
}
</style>